﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameralController : MonoBehaviour
{
    Transform player_obj;
    void LateUpdate() {
        if(ReferenceEquals(player_obj,null))
        {
            player_obj = App.gameManager.GetPlayer();
        }else{
            this.transform.position = new Vector3(player_obj.position.x,player_obj.position.y,this.transform.position.z);
        }
    }
}
